{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang censor_type:admin}</h3>{template content/contentcensor-submenu}
	</div>
	<div class="alert alert-info mt10">
		<span class="label label-info">{lang info:admin}</span>
		{lang censor_type_tip:admin}
	</div>
	<div class="setform">
		<table class="table table-striped">
        <thead>
          <tr>
            <th width="80">ID</th>
            <th width="200">{lang censor_type:admin}</th>
            <th width="200">{lang operation:admin}</th>
          </tr> 
        </thead>
        <tbody>
        {loop $censortypes $key $sm}
			<tr>
			<td>$sm['id']</td>
			<td>$sm['typename']</td>
			<td>{if $sm['id']>1}<a href="{url admin/contentcensortype?act=delete&id=$sm['id']}">{lang delete:admin}</a> 
			<a href="{url admin/contentcensortype?act=edit&id=$sm['id']}">{lang edit:admin}</a>{/if}</td>
          	</tr>
		{/loop}
          
        </tbody>
		</table>
		<div class="text_c">$pages</div>
	</div>
	<div class="settitle">
		<h3>{lang censortype_add:admin}</h3>
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/contentcensortype?act=add}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang censor_type:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="typename" id="typename"/>
				</div>
				<span class="formhelp">{lang censor_type:admin}</span>
			</div>
			
			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang add:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}